package com.houtai.dao;

import com.houtai.bean.TdActivityWorksComments;
import com.houtai.bean.dto.avtivity.works.comments.TdActivityWorksCommentsListDto;
import com.houtai.bean.vo.activity.works.comments.TdActivityWorksCommentsList;
import com.houtai.bean.vo.activity.works.comments.TdActivityWorksCommentsReplyList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TdActivityWorksCommentsDao {
    /**
     * @Purpose:    添加作品评论
     * @param:      TdActivityWorksComments
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdActivityWorksComments(TdActivityWorksComments TdActivityWorksComments);
    /**
     * @Purpose:    根据作品id和用户id查找评论
     * @param:      TdActivityWorksComments
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     int
     */
    int findSize(@Param("user_id") int user_id, @Param("works_id") int works_id);
    /**
     * @Purpose   查找作品评论列表
     * @param     dto
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdActivityWorksCommentsList>
     */
    List<TdActivityWorksCommentsList> findTdActivityWorksCommentsList(TdActivityWorksCommentsListDto dto);
    /**
     * @Purpose   查找作品评论回复列表
     * @param     is_reply
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdActivityWorksCommentsReplyList>
     */
    List<TdActivityWorksCommentsReplyList> findTdActivityWorksCommentsReplyList(@Param("is_reply") int is_reply);
}
